(function(window){
	var CM={
				  run: function(name,act_name,query,app_name_one){ 
				  		var controllers_url=app_name_one+"_"+name;
						console.log(controllers_url);
						if($.inArray(controllers_url,controllers_list)==-1){
							return false;	
						}
						//alert(hiApp.params.v);
				  		var loaded=JS.load(controllersPath+"/"+app_name_one+"/Js/controller/"+name+".js" ,hiApp.params.v);	
						console.log(controllersPath+"/"+app_name_one+"/Js/controller/"+name+".js");
						if(loaded){
							var function_name=app_name_one+"_"+name+"."+act_name;
							var act_name_type=typeof(eval(function_name));
							if(act_name_type=="function"){
								 var data="";
								 if(typeof(query)=="object"){
									data={
											'name':query.name,
											'url':query.url,
											'query':query.query,
											'root_url':query.root_url
										}
									data=JSON.stringify(data);
								}
								var  command=function_name+"("+data+")";
								//console.log(command);
								//alert(123);
								eval(command);
							}else{
								console.log(app_name_one+"项目里的"+name+"不存"+act_name+"方法");
							}
						}else{
							console.log(app_name_one+"项目里不存在"+name);
						}
						 
				  },
				  init:function(app,name){
					 controllers_name=app+"_"+name;
					 if($.inArray(controllers_name,controllers_list)==-1){
						return false;	
					}
					var loaded=JS.load(controllersPath+"/"+app+"/Js/controller/"+name+".js" ,hiApp.params.v);		
					var obj=eval(controllers_name);
					return obj;
					// console.log(name);
					//console.log(  typeof(eval(name))); 
				 }
			  };
	window.CM = CM;		  
})(window);
